<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<title>订单管理页面</title>
		<meta name="keywords" content="" />
		<meta name="description" content="" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />

		<!-- basic styles -->

		<link href="assets/css/bootstrap.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="assets/css/font-awesome.min.css" />

		<!--[if IE 7]>
		  <link rel="stylesheet" href="assets/css/font-awesome-ie7.min.css" />
		<![endif]-->

		<!-- page specific plugin styles -->

		<link rel="stylesheet" href="assets/css/jquery-ui-1.10.3.full.min.css" />

		<!-- fonts -->

		<link rel="stylesheet" href="assets\css\cyrillic.css" />

		<!-- ace styles -->

		<link rel="stylesheet" href="assets/css/ace.min.css" />
		<link rel="stylesheet" href="assets/css/ace-rtl.min.css" />
		<link rel="stylesheet" href="assets/css/ace-skins.min.css" />

		<!--[if lte IE 8]>
		  <link rel="stylesheet" href="assets/css/ace-ie.min.css" />
		<![endif]-->

		<!-- inline styles related to this page -->

		<!-- ace settings handler -->

		<script src="assets/js/ace-extra.min.js"></script>

		<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->

		<!--[if lt IE 9]>
		<script src="assets/js/html5shiv.js"></script>
		<script src="assets/js/respond.min.js"></script>
		<![endif]-->
		
		<!-- 标签页logo -->
		<link rel="shortcut icon" href="img/logo2.ico" />
		
		<link href="css/jquery.dataTables.css"/>
		
		<!-- 引入 echarts.js -->
    	<script src="js/echarts.js"></script>
	</head>

	<body>
		<div class="navbar navbar-default" id="navbar">
			<script type="text/javascript">
				try{ace.settings.check('navbar' , 'fixed')}catch(e){}
			</script>

			<!-- 顶部导航栏 -->
			<div class="navbar-container" id="navbar-container">
				<div class="navbar-header pull-left">
					<a href="#" class="navbar-brand">
						<small>
							<i class="icon-leaf"></i>
							36组美发POS系统
						</small>
					</a><!-- /.brand -->
				</div><!-- /.navbar-header -->
				
				<div class="navbar-header pull-right" role="navigation">
					
					<ul class="nav ace-nav">
						<!-- 导航栏右侧用户头像 -->
						<li class="light-blue">
							<a data-toggle="dropdown" href="#" class="dropdown-toggle">
								<img class="nav-user-photo" src="assets/avatars/user.jpg" alt="Jason's Photo" />
								<span class="user-info">
									<small>欢迎光临,</small>
									Admin
								</span>

								<i class="icon-caret-down"></i>
							</a>

							<ul class="user-menu pull-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
								<li>
									<a href="#">
										<i class="icon-cog"></i>
										设置
									</a>
								</li>

								<li>
									<a href="#">
										<i class="icon-user"></i>
										个人资料
									</a>
								</li>

								<li class="divider"></li>

								<li>
									<a href="#">
										<i class="icon-off"></i>
										退出
									</a>
								</li>
							</ul>
						</li>
					</ul><!-- /.ace-nav -->
				</div><!-- /.navbar-header -->
			</div><!-- /.container -->
		</div>
		<!-- 导航栏结束 -->

		<div class="main-container" id="main-container">
			<script type="text/javascript">
				try{ace.settings.check('main-container' , 'fixed')}catch(e){}
			</script>

			<div class="main-container-inner">
				<a class="menu-toggler" id="menu-toggler" href="#">
					<span class="menu-text"></span>
				</a>

				<!-- 侧边栏 -->
				<div class="sidebar" id="sidebar">
					<script type="text/javascript">
						try{ace.settings.check('sidebar' , 'fixed')}catch(e){}
					</script>
					<!-- 4个button按钮 -->
					<div class="sidebar-shortcuts" id="sidebar-shortcuts">
						<div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
							<button class="btn btn-success">
								<i class="icon-signal"></i>
							</button>

							<button class="btn btn-info">
								<i class="icon-pencil"></i>
							</button>

							<button class="btn btn-warning">
								<i class="icon-group"></i>
							</button>

							<button class="btn btn-danger">
								<i class="icon-cogs"></i>
							</button>
						</div>

						<div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
							<span class="btn btn-success"></span>

							<span class="btn btn-info"></span>

							<span class="btn btn-warning"></span>

							<span class="btn btn-danger"></span>
						</div>
					</div><!-- #sidebar-shortcuts -->
					<!-- 侧边栏开始 -->
					<ul class="nav nav-list">
						<!-- class="active"会有蓝色三角形效果 -->
						<li>
							<a href="index.html">
								<i class="icon-dashboard"></i>
								<span class="menu-text"> 控制台 </span>
							</a>
						</li>

						<li>
							<a href="storeInfo.html">
								<i class="icon-home"></i>
								<span class="menu-text"> 店铺信息 </span>
							</a>
						</li>

						<li>
							<a href="#" class="dropdown-toggle">
								<i class="icon-desktop"></i>
								<span class="menu-text"> 服务管理 </span>

								<b class="arrow icon-angle-down"></b>
							</a>

							<ul class="submenu">
								<li>
									<a href="showSC.html">
										<i class="icon-double-angle-right"></i>

										服务类型管理
									</a>
								</li>
								
								<li>
									<a href="showSer.html">
										<i class="icon-double-angle-right"></i>

										具体服务管理
									</a>
								</li>
							
							</ul> 
						</li> 
						
						<li>
							<a href="product.html">
								<i class="icon-bar-chart"></i>
								<span class="menu-text"> 产品管理 </span>
							</a>
						</li>
						
						<li>
							<a href="employee.html">
								<i class="icon-book"></i>
								<span class="menu-text"> 员工管理 </span>
							</a>
						</li>

						<li>
							<a href="vip.html" class="dropdown-toggle">
								<i class="icon-group"></i>
								<span class="menu-text"> 会员管理 </span>
							</a>
						</li>
						
						<li class="active">
							<a href="saleOrderList.html" class="dropdown-toggle">
								<i class="icon-laptop"></i>
								<span class="menu-text"> 订单管理 </span>
							</a>
						</li>
					
					</ul><!-- /.nav-list -->
					<!-- 侧边导航栏结束 -->

					<div class="sidebar-collapse" id="sidebar-collapse">
						<i class="icon-double-angle-left" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i>
					</div>

					<script type="text/javascript">
						try{ace.settings.check('sidebar' , 'collapsed')}catch(e){}
					</script>
				</div>

			<div class="main-content">
				<div class="breadcrumbs" id="breadcrumbs">
					<script type="text/javascript">
							try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
						</script>

					<ul class="breadcrumb">
						<li><i class="icon-home home-icon"></i> <a href="index.html">主页</a>
						</li>

						<li class="active">订单管理</li>
					</ul>
					<!-- .breadcrumb -->
					<!-- 右侧搜索栏 -->
					<div class="nav-search" id="nav-search">
						<form class="form-search">
							<span class="input-icon"> <input type="text"
								placeholder="Search ..." class="nav-search-input"
								id="nav-search-input" autocomplete="off" /> <i
								class="icon-search nav-search-icon"></i>
							</span>
						</form>
					</div>
					<!-- #nav-search -->
				</div>

				<div class="page-content">
					<!-- 标签分页 -->
					<div class="row">
						<div class="col-sm-12">
							<div class="widget-box transparent" id="recent-box">
								<div class="widget-header">
									<h4 class="lighter smaller">
										<i class="icon-rss orange"></i> 查看本店铺的订单情况
									</h4>

									<div class="widget-toolbar no-border">
										<ul class="nav nav-tabs" id="recent-tab">
											<li class="active"><a data-toggle="tab"
												href="#table-tab">表格报表</a></li>

											<li><a data-toggle="tab" href="#month-tab">月报表</a></li>

											<li><a data-toggle="tab" href="#category-tab">类别报表</a></li>
										</ul>
									</div>
								</div>

								<div class="widget-body">
									<div class="widget-main padding-4">
										<div class="tab-content padding-8 overflow-visible">
											<div id="table-tab" class="tab-pane active">
												<!-- 表格报表 -->
												<div class="row">
													<div class="col-xs-12">
														<!-- PAGE CONTENT BEGINS -->
														<!-- datatable表格开始 -->
														<div class="row">
															<div class="col-xs-12">
																<!-- <div class="table-header">该表格显示所有的订单</div> -->
																<div class="table-responsive">
																	<table id="saleOrderTable"
																		class="table table-striped table-bordered table-hover">
																		<thead>
																			<tr>
																				<th>ID</th>
																				<th>订单号</th>
																				<th>顾客姓名</th>
																				<th>理发师</th>
																				<th>管理员</th>
																				<th>消费总额</th>
																				<th>状态</th>
																				<th>消费时间</th>

																			</tr>
																		</thead>
																		<tbody></tbody>
																	</table>
																</div>
															</div>
														</div>
													</div><!-- /.col -->												
												</div><!-- /.row -->										
											</div><!-- table-tab -->								

											<div id="month-tab" class="tab-pane">
												<!-- 月报表 -->
												<!-- 选择年份的按钮 -->
												<div>
													<label>选择年份</label>
													<select class="theYear" onchange="drawCharts()">
														<option></option>
														<option>2017</option>
														<option>2018</option>
													</select>
												</div>
												<br>
												<!-- echarts图表，月报表，折线图跟柱状图 -->
												<div id="echartsTable" style="width: 100%;height:500px;"></div>
											</div><!-- month-tab -->
											
											<div id="category-tab" class="tab-pane">
												<!-- 类别报表 -->
												<div class="row">
													<div class="col-sm-7">
														<h3 class="header blue lighter smaller">
															<i class="icon-calendar-empty smaller-90"></i> 选择起始时间与结束时间
														</h3>

														<div class="row">
															<div class="col-xs-5">
																<div class="input-group input-group-sm">
																	<input type="text" id="startDatepicker" class="form-control" style="height:34px;"/>
																	<span class="input-group-addon"> <i
																		class="icon-calendar"> 起始时间</i>
																	</span>
																</div>													
															</div>
															
															<div class="col-xs-5">
																<div class="input-group input-group-sm">
																	<input type="text" id="endDatepicker" class="form-control" style="height:34px;"/>
																	<span class="input-group-addon"> <i
																		class="icon-calendar"> 结束时间</i>
																	</span>
																</div>
															</div>
															
															<!-- 查看按钮 -->
															<div class="col-xs-1">
																<button class="btn btn-sm btn-primary" onclick="checkSales()">
																	查看
																</button>
															</div>
														</div>
																																								
													</div><!-- ./span -->
													
												</div><!-- ./row-fluid -->
												
												<!-- 两份图形报表的row -->
												<div class="row">
													<div class="col-xs-7">
														<br>
														<!-- echarts图表,选择起始时间与结束时间的饼图 -->
														<div id="echartsBin" style="width: 100%;height:500px;"></div>
														<br>
														<!-- echarts图表,选择起始时间与结束时间的折线图与柱状图-->
														<div id="echartsLine" style="width: 100%;height:500px;"></div>
													</div>												
												</div>
												
											</div><!-- category-tab -->
										</div>
									</div><!-- /widget-main -->								
								</div><!-- /widget-body -->							
							</div><!-- /widget-box -->						
						</div><!-- /span -->				
					</div><!-- /row -->
					

				</div>
				<!-- /.page-content -->
			</div>
			<!-- /.main-content -->

			<div class="ace-settings-container" id="ace-settings-container">
					<div class="btn btn-app btn-xs btn-warning ace-settings-btn" id="ace-settings-btn">
						<i class="icon-cog bigger-150"></i>
					</div>

					<div class="ace-settings-box" id="ace-settings-box">
						<div>
							<div class="pull-left">
								<select id="skin-colorpicker" class="hide">
									<option data-skin="default" value="#438EB9">#438EB9</option>
									<option data-skin="skin-1" value="#222A2D">#222A2D</option>
									<option data-skin="skin-2" value="#C6487E">#C6487E</option>
									<option data-skin="skin-3" value="#D0D0D0">#D0D0D0</option>
								</select>
							</div>
							<span>&nbsp; Choose Skin</span>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-navbar" />
							<label class="lbl" for="ace-settings-navbar"> Fixed Navbar</label>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-sidebar" />
							<label class="lbl" for="ace-settings-sidebar"> Fixed Sidebar</label>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-breadcrumbs" />
							<label class="lbl" for="ace-settings-breadcrumbs"> Fixed Breadcrumbs</label>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-rtl" />
							<label class="lbl" for="ace-settings-rtl"> Right To Left (rtl)</label>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-add-container" />
							<label class="lbl" for="ace-settings-add-container">
								Inside
								<b>.container</b>
							</label>
						</div>
					</div>
				</div><!-- /#ace-settings-container -->
			</div><!-- /.main-container-inner -->

			<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
				<i class="icon-double-angle-up icon-only bigger-110"></i>
			</a>
		</div><!-- /.main-container -->

		<!-- basic scripts -->

		<!--[if !IE]> -->

		<script src="assets\js\jquery-2.0.3.min.js"></script>

		<!-- <![endif]-->

		<!--[if IE]>
		<script src="assets\js\jquery-1.10.2.min.js"></script>
		<![endif]-->

		<!--[if !IE]> -->

		<script type="text/javascript">
			window.jQuery || document.write("<script src='assets/js/jquery-2.0.3.min.js'>"+"<"+"/script>");
		</script>

		<!-- <![endif]-->

		<!-- [if IE]>
		<script type="text/javascript">
		 window.jQuery || document.write("<script src='assets/js/jquery-1.10.2.min.js'>"+"<"+"/script>");
		</script>
		<![endif] -->

		<script type="text/javascript">
			if("ontouchend" in document) document.write("<script src='assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
		</script>
		<script src="assets/js/bootstrap.min.js"></script>
		<script src="assets/js/typeahead-bs2.min.js"></script>

		<!-- page specific plugin scripts -->

		<script src="assets/js/jquery.dataTables.min.js"></script>
		<script src="assets/js/jquery.dataTables.bootstrap.js"></script> 

		<script src="assets/js/jquery-ui-1.10.3.full.min.js"></script>
		<script src="assets/js/jquery.ui.touch-punch.min.js"></script>
	
		<!-- ace scripts -->

		<script src="assets/js/ace-elements.min.js"></script>
		<script src="assets/js/ace.min.js"></script>

		<!-- 加载自定义js文件 -->
		<script type="text/javascript" src="js/saleOrderList.js"></script>
		
		
</body>
</html>
<!-- <script>var _hmt = _hmt || [];(function(){var hm=document.createElement("script");hm.src = "//hm.baidu.com/hm.js?a43c39da34531f4da694d4499c5614d4";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(hm, s);})();</script> -->